:root {
  --theme-color: #165dff;
}
.setting-page-container {
  /*max-width: 1200px;*/
  padding-bottom: 80px;
  /*margin: 0 auto;*/
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 20px;
  margin: 0 auto;
  border-bottom: 1px solid #EBEBEB;
}
.tab-btn .tab-btn-item {
  height: 60px;
  line-height: 60px;
  position: relative;
  font-size: 20px;
  cursor: pointer;
}
.tab-btn .tab-btn-item.action {
  color: var(--theme-color);
}
.tab-btn .tab-btn-item.action::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--theme-color);
  position: absolute;
  bottom: 0;
  left: 0;
}
.setting-container-box,
.cache-container-box {
  display: none;
}
.setting-container-box.active,
.cache-container-box.active {
  display: block;
}
.setting-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.setting-block-title {
  height: 52px;
  padding-left: 20px;
  line-height: 52px;
  font-size: 20px;
  color: #1D2129;
  border-bottom: 1px solid #EBEBEB;
}
.setting-block-title .title-hint-text {
  font-size: 14px;
  color: #4E5969;
}
.hint-text {
  display: inline-block;
  align-items: center;
  height: 44px;
  padding: 10px;
  margin: 20px;
  border-radius: 6px;
  background-color: #89a3f614;
  font-size: 14px;
  color: #165dff;
}
.hint-text .hint-text-blod {
  font-weight: 600;
}
.flag-languages-title,
.color-options-title {
  display: flex;
  align-items: center;
  column-gap: 20px;
}
.form-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  margin-top: 20px;
}
.form-group > * {
  flex: 1;
}
.form-group .label-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group .label-wrapper label {
  font-size: 16px;
  color: #333;
}
.form-group .label-wrapper .tips-icon {
  flex: none;
  display: flex;
  width: 16px;
  height: 16px;
  cursor: pointer;
  position: relative;
}
.form-group .label-wrapper .tips-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-20%);
  padding: 8px 12px;
  background-color: #fff;
  color: #000;
  font-size: 14px;
  border-radius: 4px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 300px;
  white-space: pre-wrap;
}
.form-group .label-wrapper .tips-icon::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
}
.form-group .label-wrapper .tips-icon:hover::before,
.form-group .label-wrapper .tips-icon:hover::after {
  visibility: visible;
  opacity: 1;
}
.form-group .label-wrapper .tips-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.form-group .input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin-bottom: 10px;
  position: relative;
}
.form-group .input-wrapper .input-icon {
  position: absolute;
  right: -24px;
  top: 45%;
  transform: translateY(-20%);
  width: 16px;
  height: 16px;
  display: none;
}
.form-group .input-wrapper .input-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.form-group .input-wrapper input {
  width: 100%;
  padding-right: 36px;
}
.form-group .input-wrapper input.error {
  border-color: #F53F3F;
}
.form-group .input-wrapper input.error:hover,
.form-group .input-wrapper input.error:focus {
  border-color: #F53F3F;
  box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.1);
}
.form-group .input-wrapper input.valid {
  border-color: #00B42A;
}
.form-group .input-wrapper input.valid:hover,
.form-group .input-wrapper input.valid:focus {
  border-color: #00B42A;
  box-shadow: 0 0 0 2px rgba(0, 180, 42, 0.1);
}
.form-group .input-wrapper .input-error {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  font-size: 12px;
  color: #F53F3F;
  display: none;
}
.form-group .input-wrapper .input-error a {
  color: #3F51F5;
}
.form-group .input-wrapper.show-error .input-error {
  display: block;
}
.form-group .input-wrapper.show-error input {
  border-color: #F53F3F;
}
.form-group .input-wrapper.show-error input:hover,
.form-group .input-wrapper.show-error input:focus {
  border-color: #F53F3F;
  box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.1);
}
.form-group .input-wrapper.show-error .input-icon {
  display: none;
}
.form-group .input-wrapper.show-valid .input-icon {
  display: flex;
}
.form-group .checkbox-wrapper {
  display: flex;
  align-items: center;
}
.form-group .checkbox-wrapper input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  accent-color: #165DFF;
}
.form-group .custom-select {
  position: relative;
  width: 100%;
  user-select: none;
  height: 42px;
}
.form-group .custom-select .select-selected {
  height: 100%;
  padding: 0 30px 0 12px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  color: #1D2129;
  font-size: 14px;
  background-color: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.form-group .custom-select .select-selected:hover {
  border-color: var(--theme-color);
}
.form-group .custom-select .select-selected.active {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}
.form-group .custom-select .select-selected.active .select-arrow {
  transform: rotate(225deg);
}
.form-group .custom-select .select-selected .select-arrow {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border: solid #4E5969;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-5px, 2px);
  transition: transform 0.2s;
}
.form-group .custom-select .select-selected .select-flag {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.form-group .custom-select .select-selected .select-flag img {
  width: 100%;
  height: 100%;
}
.form-group .custom-select .select-items {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 99;
  background-color: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: auto;
  height: 550px;
}
.form-group .custom-select .select-items.select-hide {
  display: none;
}
.form-group .custom-select .select-items .select-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.form-group .custom-select .select-items .select-item:hover {
  background-color: #F2F3F5;
}
.form-group .custom-select .select-items .select-item.selected {
  background-color: #E8F3FF;
  color: var(--theme-color);
}
.form-group .custom-select .select-items .select-item .select-flag {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-group .custom-select .select-items .select-item .select-flag img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.form-group .custom-select .select-items .select-item .select-text {
  flex: 1;
}
select,
input {
  height: 42px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  /* 添加 box-sizing 确保 padding 不会增加元素总宽度 */
}
.color-options {
  padding: 0;
}
.color-options .color-picker {
  display: flex;
  align-items: center;
  margin-top: 16px;
  height: 32px;
  padding: 0 20px;
}
.color-options .color-picker label {
  flex: 1;
  color: #1D2129;
  font-size: 16px;
}
.color-options .color-picker input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
}
.color-options .color-picker input[type="color"]:hover {
  border-color: var(--theme-color);
}
.color-options .color-picker input[type="color"]:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
  outline: none;
}
.flag-languages {
  margin-top: 30px;
}
.language-grid {
  padding: 0 20px;
}
.language-grid .languages-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.language-item {
  display: flex;
  align-items: center;
  padding: 5px;
}
.language-item input[type="checkbox"] {
  width: 18px;
  margin-right: 8px;
  accent-color: var(--theme-color);
}
.language-item label {
  cursor: pointer;
  font-size: 14px;
}
.language-item.check-all {
  display: flex;
  font-weight: bold;
}
.save-btn {
  width: 260px;
  height: 44px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a73e8;
  font-size: 16px;
  color: white;
}
.save-btn:hover {
  background-color: #1557b0;
}
.save-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}
.positioning-tips {
  margin-top: 30px;
  background: #89a3f614;
  border-radius: 5px;
}
.positioning-tips .tips-list {
  padding: 0 0 10px 20px;
  margin: 20px 0;
}
.positioning-tips .tips-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  color: #555;
}
.positioning-tips .tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #4E5969;
}
.positioning-tips .tips-list li .color {
  color: var(--theme-color);
}
.positioning-tips .tips-list li:last-child {
  margin-bottom: 0;
}
.language-format .format-options {
  margin-top: 15px;
}
.language-format .format-option {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 20px;
  border-radius: 4px;
}
.language-format .format-option input[type="radio"] {
  /*width: auto;*/
  /*height: auto;*/
  margin-right: 10px;
  accent-color: var(--theme-color);
}
.language-format .format-option label {
  display: flex;
  align-items: center;
  column-gap: 10px;
  cursor: pointer;
}
.language-format .format-option label .option-title {
  font-weight: 500;
  margin-bottom: 4px;
}
.language-format .format-option label .option-example {
  color: #666;
  font-size: 13px;
}
.language-format .language-links {
  margin-top: 20px;
  padding: 0 20px;
}
.language-format .language-links .link-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 12px;
}
.language-format .language-links .link-item .language-name {
  width: 100px;
  text-align: right;
  font-size: 14px;
  color: #1D2129;
}
.language-format .language-links .link-item .link-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.language-format .language-links .link-item .link-content .http-prefix {
  height: 42px;
  padding: 0 10px;
  line-height: 42px;
  background-color: #F2F3F5;
  color: #86909C;
  font-size: 14px;
  white-space: nowrap;
}
.language-format .language-links .link-item .link-content .domain-suffix {
  height: 42px;
  padding: 0 10px;
  line-height: 42px;
  background-color: #F2F3F5;
  color: #86909C;
  font-size: 14px;
  white-space: nowrap;
}

.language-format .language-links .link-item .link-content .input-error {
  position: relative;
  width: 16px;
  height: 16px;
  font-size: 12px;
  color: #F53F3F;
  display: none;
  white-space: nowrap;
}

.language-format .language-links .link-item .link-content .input-icon {
  position: relative;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  display: none;
}
.language-format .language-links .link-item .link-content .input-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.language-format .language-links .link-item .link-wrapper {
  width: 80px;
}
.language-format .language-links .link-item .link-wrapper input {
  width: 100%;
  padding: 0 8px;
  text-align: center;
  font-size: 14px;
}

.language-format .language-links .link-item .link-wrapper.show-error .input-error {
  display: block;
}
.language-format .language-links .link-item .link-wrapper.show-error input {
  border-color: #F53F3F;
}
.language-format .language-links .link-item .link-wrapper.show-error input:hover,
.language-format .language-links .link-item .link-wrapper.show-error input:focus {
  border-color: #F53F3F;
  box-shadow: 0 0 0 2px rgba(245, 63, 63, 0.1);
}
.language-format .language-links .link-item .link-wrapper.show-valid .input-icon {
  display: flex;
}
.language-format .language-links .link-item .link-wrapper.show-valid input {
  border-color: #00B42A;
}
.language-format .language-links .link-item .link-wrapper.show-valid input:hover,
.language-format .language-links .link-item .link-wrapper.show-valid input:focus {
  border-color: #00B42A;
  box-shadow: 0 0 0 2px rgba(0, 180, 42, 0.1);
}

.language-button-design h3 {
  margin-bottom: 15px;
  color: #333;
}
.language-button-design .form-group {
  margin-bottom: 15px;
}
.language-button-design .form-group select {
  background-color: #fff;
}
.language-button-design .form-group select:hover {
  border-color: #b3b3b3;
}
.language-button-design .form-group select:focus {
  border-color: #1a73e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}
.widget-preview {
  padding: 0 20px;
}
.preview-selector {
  margin: 20px 0;
}
.preview-selector .form-group .custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}
.preview-selector .form-group .custom-select .select-selected {
  height: 42px;
  padding: 0 30px 0 12px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  color: #1D2129;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.preview-selector .form-group .custom-select .select-selected.active {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}
.preview-selector .form-group .custom-select .select-selected.active .select-arrow {
  transform: rotate(225deg) translate(0, -5px);
}
.preview-selector .form-group .custom-select .select-selected .select-arrow{
  position: absolute;
  right: 12px;
  width: 10px;
  height: 10px;
  border: solid #4e5969;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-5px, 2px);
  transition: transform 0.2s;
}
.preview-selector .form-group .custom-select .select-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  margin-top: 4px;
  background-color: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.preview-selector .form-group .custom-select .select-items.select-hide {
  display: none;
}
.preview-selector .form-group .custom-select .select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.preview-selector .form-group .custom-select .select-item:hover {
  background-color: #F2F3F5;
}
.preview-selector .form-group .custom-select .select-item.selected {
  background-color: #E8F3FF;
  color: var(--theme-color);
}
.preview-selector .form-group .custom-select .select-flag {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.preview-selector .form-group .custom-select .select-flag img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.preview-selector .form-group .custom-select .select-text {
  flex: 1;
}
.cache-container {
  padding: 20px;
  position: relative;
}
.cache-container .search-area {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.cache-container .search-area .search-input {
  position: relative;
  width: 240px;
}
.cache-container .search-area .search-input input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 12px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  font-size: 14px;
  color: #1D2129;
}
.cache-container .search-area .search-input input::placeholder {
  color: #86909C;
}
.cache-container .search-area .search-input input:hover {
  border-color: var(--theme-color);
}
.cache-container .search-area .search-input input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
  outline: none;
}
.cache-container .search-area .search-input .search-icon {
  display: flex;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.cache-container .search-area .search-input .search-icon img {
  width: 100%;
  height: 100%;
}
.cache-container .custom-select {
  position: relative;
  width: 240px;
  user-select: none;
  height: 42px;
}
.cache-container .custom-select .select-selected {
  height: 100%;
  padding: 0 30px 0 12px;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  color: #1d2129;
  font-size: 14px;
  background-color: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cache-container .custom-select .select-selected:hover {
  border-color: var(--theme-color);
}
.cache-container .custom-select .select-selected.active {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}
.cache-container .custom-select .select-selected.active .select-arrow {
  transform: rotate(225deg);
}
.cache-container .custom-select .select-selected .select-arrow {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border: solid #4e5969;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translate(-5px, 2px);
  transition: transform 0.2s;
}
.cache-container .custom-select .select-selected .select-flag {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.cache-container .custom-select .select-selected .select-flag img {
  width: 100%;
  height: 100%;
}
.cache-container .custom-select .select-items {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 99;
  background-color: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.cache-container .custom-select .select-items.select-hide {
  display: none;
}
.cache-container .custom-select .select-items .select-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.cache-container .custom-select .select-items .select-item:hover {
  background-color: #f2f3f5;
}
.cache-container .custom-select .select-items .select-item.selected {
  background-color: #e8f3ff;
  color: var(--theme-color);
}
.cache-container .custom-select .select-items .select-item .select-flag {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cache-container .custom-select .select-items .select-item .select-flag img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cache-container .custom-select .select-items .select-item .select-text {
  flex: 1;
}
.cache-container .table-container {
  margin-bottom: 20px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
}
.cache-container .table-container table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
}
.cache-container .table-container table thead {
  border-radius: 8px 8px 0 0;
  background-color: #F8FAFF;
}
.cache-container .table-container table tr {
  border-bottom: 1px solid #E5E6EB;
}
.cache-container .table-container table tr:last-child {
  border-bottom: none;
}
.cache-container .table-container table th,
.cache-container .table-container table td {
  padding: 16px;
  text-align: left;
}
.cache-container .table-container table th {
  font-weight: 500;
  color: #1D2129;
}
.cache-container .table-container table td {
  color: #4E5969;
  font-size: 14px;
}
.cache-container .table-container table .flag-list {
  display: flex;
  gap: 8px;
}
.cache-container .table-container table .flag-list img {
  width: 24px;
  height: 24px;
}
.cache-container .table-container table .action-list {
  display: flex;
  gap: 8px;
}
.cache-container .table-container table .action-list img {
  width: 24px;
  height: 24px;
}
.cache-container .table-container table .words-count {
  color: var(--theme-color);
  cursor: pointer;
}
.cache-container .pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 20px;
  padding: 0 16px;
}
.cache-container .pagination .pagination-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cache-container .pagination .pagination-left button {
  width: 32px;
  height: 32px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  background: #fff;
  color: #4E5969;
  cursor: pointer;
}
.cache-container .pagination .pagination-left button:hover {
  border-color: var(--theme-color);
  color: var(--theme-color);
}
.cache-container .pagination .pagination-left button:disabled {
  border-color: #E5E6EB;
  color: #C9CDD4;
  cursor: not-allowed;
}
.cache-container .pagination .pagination-left .page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cache-container .pagination .pagination-left .page-numbers .page-number {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
}
.cache-container .pagination .pagination-left .page-numbers .page-number:hover {
  color: var(--theme-color);
}
.cache-container .pagination .pagination-left .page-numbers .page-number.active {
  background: var(--theme-color);
  color: #fff;
}
.cache-container .pagination .pagination-left .page-numbers .ellipsis {
  color: #4E5969;
}
.cache-container .pagination .pagination-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4E5969;
}
.cache-container .pagination .pagination-right .goto-input {
  width: 48px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  text-align: center;
}
.cache-container .pagination .pagination-right .goto-input:hover {
  border-color: var(--theme-color);
}
.cache-container .pagination .pagination-right .goto-input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
  outline: none;
}
.cache-container .translation-modal {
  position: fixed;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 70%;
  min-width: 450px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}
.cache-container .translation-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #E5E6EB;
  border-radius: 10px 10px 0 0;
  background-color: #5C6B8B;
}
.cache-container .translation-modal .modal-header .modal-title {
  font-size: 16px;
  color: #fff;
}
.cache-container .translation-modal .modal-header .modal-actions {
  display: flex;
  gap: 16px;
}
.cache-container .translation-modal .modal-header .modal-actions .magnify-btn,
.cache-container .translation-modal .modal-header .modal-actions .close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}
.cache-container .translation-modal .modal-content {
  padding: 30px;
}
.cache-container .translation-modal .modal-content .modal-content-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cache-container .translation-modal .modal-content .search-box {
  width: 360px;
  position: relative;
  margin-bottom: 16px;
}
.cache-container .translation-modal .modal-content .search-box input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 12px;
  border: 1px solid #E5E6EB;
  border-radius: 4px;
  font-size: 14px;
}
.cache-container .translation-modal .modal-content .search-box input::placeholder {
  color: #86909C;
}
.cache-container .translation-modal .modal-content .search-box input:hover {
  border-color: var(--theme-color);
}
.cache-container .translation-modal .modal-content .search-box input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
  outline: none;
}
.cache-container .translation-modal .modal-content .search-box .search-icon {
  display: flex;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.cache-container .translation-modal .modal-content .translation-info {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  color: #1D2129;
  font-size: 20px;
}
.cache-container .translation-modal .modal-content .translation-info .words {
  color: #FF7F03;
  font-size: 30px;
}
.cache-container .translation-modal .modal-content .translation-list {
  margin-bottom: 20px;
  overflow: auto;
  max-height: 400px;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
}
.cache-container .translation-modal .modal-content .translation-list table {
  width: 100%;
  border-collapse: collapse;
}
.cache-container .translation-modal .modal-content .translation-list table thead {
  position: sticky;
  top: 0;
}
.cache-container .translation-modal .modal-content .translation-list table thead th {
  border-top: 0px solid;
  background: #F8FAFF;
  color: #181818;
}
.cache-container .translation-modal .modal-content .translation-list table th,
.cache-container .translation-modal .modal-content .translation-list table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #E5E6EB;
  min-width: 200px;
}
.cache-container .translation-modal .modal-content .translation-list table th {
  position: sticky;
  top: 0;
  background: #fff;
  font-weight: 500;
  color: #4E5969;
  font-size: 14px;
  border-top: 1px solid #E5E6EB;
}
.cache-container .translation-modal .modal-content .translation-list table td {
  font-size: 14px;
  color: #4E5969;
  line-height: 1.5;
  vertical-align: top;
}
.cache-container .translation-modal .modal-content .translation-list table td:first-child {
  color: #4E5969;
}
.cache-container .magnify-modal {
  width: 100%;
  height: 100%;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
}




.tips-list .color {
  background: #295cff14;
  padding: 5px 10px;
  border-radius: 5px;
}
#previewLanguage {
    max-width: 250px;
    width: 100%;
}

#previewLanguage.custom-select {
    height: 100%;
}

#previewLanguage .select-selected {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    padding-right: 30px;
}

#previewLanguage .select-text {
    font-size: 14px;
    vertical-align: middle;
    line-height: 1;
}

#previewLanguage .select-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    padding-right: 30px;
    cursor: pointer;
}

/* Flag size classes - 只控制国旗高度，宽度自适应 */
#previewLanguage.flag-size-16 .select-flag {
    height: 16px;
    width: auto;
}

#previewLanguage.flag-size-16 .select-flag img {
    height: 16px;
    width: auto;
}

#previewLanguage.flag-size-24 .select-flag {
    height: 24px;
    width: auto;
}

#previewLanguage.flag-size-24 .select-flag img {
    height: 24px;
    width: auto;
}

#previewLanguage.flag-size-32 .select-flag {
    height: 32px;
    width: auto;
}

#previewLanguage.flag-size-32 .select-flag img {
    height: 32px;
    width: auto;
}

/* 确保图片不会被其他样式覆盖 */
#previewLanguage .select-flag {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

#previewLanguage .select-flag img {
    object-fit: contain;
    max-height: 100%;
    width: auto;
}

.cache-directory-info {
    margin: 12px 0 16px 0;
    font-size: 14px;
    color: #165dff;
    width: 98%;
}

.directory-path {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #295cff14;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #E5E6EB;
    margin-left: 10px;
}

.directory-path span:first-child {
    word-break: break-all;
    flex: 1;
}

.writable-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.writable-status.writable {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

.writable-status.not-writable {
    background-color: #fce8e6;
    color: #d93025;
}



/* loading css */
.sk-spinner {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 10px;
  top: 30%;
  display: none;
  /* margin: 100px auto; */
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #a855f7;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
  0%, 100% { -webkit-transform: scale(0.0) }
  50% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bounce {
  0%, 100% { 
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 50% { 
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}

.cache-container .confirm-modal {
  width: 400px; /* 根据需要调整宽度 */
  max-width: 90%; /* 确保在小屏幕上也能显示 */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000; /* 确保在其他元素之上 */
}

.cache-container .confirm-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #E5E6EB;
  border-radius: 10px 10px 0 0;
  background-color: #5C6B8B;
}
.cache-container .confirm-modal .modal-header .modal-title {
  font-size: 16px;
  color: #fff;
}
.cache-container .confirm-modal .modal-header .modal-title span:last-child {
  margin-left: 8px;
}
.cache-container .confirm-modal .modal-header .modal-actions {
  display: flex;
  gap: 16px;
}
.cache-container .confirm-modal .modal-header .modal-actions .magnify-btn,
.cache-container .confirm-modal .modal-header .modal-actions .close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}
.cache-container .confirm-modal .modal-content {
  padding: 30px;
}
.cache-container .confirm-modal .modal-content .modal-content-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cache-container .confirm-modal .modal-content .modal-footer {
  display: flex;
  justify-content: flex-end; /* 右对齐 */
  margin-top: 20px; /* 上边距 */
}

.cache-container .confirm-modal .modal-content .confirm-btn, .cancel-btn {
  background-color: #007bff; /* 确认按钮的背景色 */
  color: white; /* 字体颜色 */
  border: none; /* 去掉边框 */
  border-radius: 4px; /* 圆角 */
  padding: 10px 20px; /* 内边距 */
  cursor: pointer; /* 鼠标指针 */
  margin-left: 10px; /* 左边距 */
  transition: background-color 0.3s; /* 背景色过渡效果 */
}

.cache-container .confirm-modal .modal-content .cancel-btn {
  background-color: #6c757d; /* 取消按钮的背景色 */
}

.cache-container .confirm-modal .modal-content .confirm-btn:hover {
  background-color: #0056b3; /* 确认按钮悬停时的背景色 */
}

.cache-container .confirm-modal .modal-content .cancel-btn:hover {
  background-color: #5a6268; /* 取消按钮悬停时的背景色 */
}

.cache-container .confirm-modal .modal-content .modal-content-top .warn-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle; /* 确保图标与文字垂直对齐 */
}

.cache-container .confirm-modal .modal-content .modal-content-top p {
  display: flex;
  align-items: center;
  gap: 6px; /* 稍微减小图标和文字之间的间距 */
}